package com.snake.springboot.authority.api.service;

import com.snake.springboot.authority.api.model.AuthMenuModel;
import com.snake.springboot.authority.api.model.AuthRoleMenuModel;
import com.snake.springboot.authority.api.response.AuthMenuComplexRsp;
import com.snake.springboot.authority.api.response.AuthMenuRsp;

import java.util.List;

public interface AuthMenuService {

    AuthMenuModel addMenu(AuthMenuModel model) throws Exception;

    int removeMenu(String menuId);

    int modifyMenu(AuthMenuModel model) throws Exception;

    AuthMenuComplexRsp querySingleMenu(String menuId);

    List<AuthMenuRsp> queryMenuTree(AuthRoleMenuModel params);

    void modifyMenuEnable(AuthMenuModel model);

    void modifyMenuSort(AuthMenuModel model);
}
